package com.flx.dis.nacos.api.admin.service;

import com.flx.common.utils.result.ResultResponse;
import com.flx.dis.nacos.api.admin.dto.EmployeeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "common-nacos-admin",path = "/employee")
public interface IEmployeeService {

    @GetMapping("/get/{id}")
    ResultResponse get(@PathVariable("id")Long id);

    @PostMapping("/add")
    ResultResponse add(@RequestBody EmployeeDto employee);

    @PostMapping("/update")
    ResultResponse update(@RequestBody EmployeeDto employee);

    @GetMapping("/delete/{id}")
    ResultResponse delete(@PathVariable("id")Long id);
    
}
